/**
 * 作者: wgx
 * 日期: 2024-10-31 17:09:12
 * 备注: 干员升星表
 */
package com.motu.monstercity.server.game.commondata.partner;

import io.vertx.core.json.JsonObject;

public class PartnerStarModel {
    protected int id; // 数据库ID
    protected int stage; // 星级阶段，，每5阶升1星
    protected int quality; // 品质
    protected int needLevel; // 升星需要干员等级
    protected int needItemNum; // 升星需要的干员碎片数量
    protected int powerAddValue; // 战力加成固定值
    protected int powerAddPer; // 战力加成百分比
    protected int skillId; // 获得的技能id

    public PartnerStarModel() {
    }

    public PartnerStarModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        stage = obj.containsKey("stage") ? obj.getInteger("stage") : 0;
        quality = obj.containsKey("quality") ? obj.getInteger("quality") : 0;
        needLevel = obj.containsKey("need_level") ? obj.getInteger("need_level") : 0;
        needItemNum = obj.containsKey("need_item_num") ? obj.getInteger("need_item_num") : 0;
        powerAddValue = obj.containsKey("power_add_value") ? obj.getInteger("power_add_value") : 0;
        powerAddPer = obj.containsKey("power_add_per") ? obj.getInteger("power_add_per") : 0;
        skillId = obj.containsKey("skill_id") ? obj.getInteger("skill_id") : 0;
    }

    public int getId() {
        return id;
    }

    public int getStage() {
        return stage;
    }

    public int getQuality() {
        return quality;
    }

    public int getNeedLevel() {
        return needLevel;
    }

    public int getNeedItemNum() {
        return needItemNum;
    }

    public int getPowerAddValue() {
        return powerAddValue;
    }

    public int getPowerAddPer() {
        return powerAddPer;
    }

    public int getSkillId() {
        return skillId;
    }

}
